﻿Imports System
Imports System.Collections.ObjectModel
Imports System.ComponentModel
Imports System.IO
Imports System.Xml.Serialization
Imports Microsoft.TeamFoundation.WorkItemTracking.Client
Imports System.Threading

Public Class WIItem
    Inherits Item
    Implements IItemWrapper(Of WorkItem)

#Region " Values "

    Private m_Value As WorkItem

#End Region

#Region " Propertys "

    Public Property Value() As WorkItem Implements IItemWrapper(Of WorkItem).Value
        Get
            Return m_Value
        End Get
        Set(ByVal value As WorkItem)
            If Not m_Value Is value Then
                m_Value = value
                OnPropertyChanged("Value")
            End If
        End Set
    End Property

#End Region

    Public Sub New(ByVal WorkItem As WorkItem)
        MyBase.New(TFSStickyBuddy.ItemType.WorkItem, WorkItem.Uri.ToString, WorkItem.Title)
        Me.m_Value = WorkItem
    End Sub

End Class
